﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Linq.Mapping;
using BrightIdeasSoftware;

namespace Teddy
{
    [Table(Name = "TEDTalks")]
    class TEDTalk
    {
        public TEDTalk(string _t, string _s, bool _d)
        {
            this._Title = _t;
            this._Speaker = _s;
            this._Downloaded = _d;
        }
        private bool _Marked;
        [Column(Storage = "_Marked")]
        [OLVColumn(Name = "Marked", Title = "")]
        public bool Marked
        {
            get { return this._Marked; }
            set { this._Marked = value; }
        }
        private string _Title;
        [Column(IsPrimaryKey = true, Storage = "_Title")]
        [OLVColumn(IsEditable = false, Name = "Title", Title = "Title")]
        public string Title
        {
            get { return this._Title; }
            set { this._Title = value; }
        }
        private string _Speaker;
        [Column(Storage = "_Speaker")]
        [OLVColumn(IsEditable = false, Name = "Speaker", Title = "Speaker")]
        public string Speaker
        {
            get { return this._Speaker; }
            set { this._Speaker = value; }
        }
        private bool _Downloaded;
        [Column(Storage = "_Downloaded")]
        [OLVColumn(IsEditable = false, Name = "Downloaded", Title = "")]
        public bool Downloaded
        {
            get { return this._Downloaded; }
            set { this._Downloaded = value; }
        }
    }
}
